import {createRouter, createWebHistory, RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/Home'
    },
    {
        path: '/Home',
        component: () => import('@/views/Home.vue'),
        meta: {
            title: "首页"
        }
    },
    {
        path: '/RefAndReactive',
        component: () => import('@/components/RefAndReactive.vue')
    },
    {
        path: '/TeamplatRefs',
        component: () => import('@/components/TeamplatRefs.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router